#!/usr/bin/python
# -*- coding: UTF-8 -*-

import re     #正则表达式模块

testStr = "to:ourservles"
testStr1 = "to:"
print re.match("to:+", testStr) is not None
print re.match("to:+", testStr1) is not None
data = testStr[3:]
print data
